From d777bb50fdb3a80ce7c1d35d36590a75199adef8 Mon Sep 17 00:00:00 2001 From: justbur Date: Thu, 29 Oct 2015 21:06:48 -0400 Subject: [PATCH] Don't show help hint for evil operators Paging and help doesn't work for these, so don't offer --- which-key.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/which-key.el b/which-key.el index ddced1974f8..fa240388ef5 100644 --- a/which-key.el +++ b/which-key.el @@ -1371,9 +1371,12 @@ area." (next-page-n (format "pg %s" (1+ (mod (1+ page-n) n-pages)))) (use-descbind (and which-key--on-last-page which-key-use-C-h-for-paging which-key-prevent-C-h-from-cycling))) - (when (or (and (< 1 n-pages) which-key-use-C-h-for-paging) - (and (< 1 n-pages) paging-key-bound) - use-descbind) + (when (and (or (and (< 1 n-pages) which-key-use-C-h-for-paging) + (and (< 1 n-pages) paging-key-bound) + use-descbind) + (not (and which-key-allow-evil-operators + (boundp 'evil-this-operator) + evil-this-operator))) (propertize (format "[%s %s]" key (if use-descbind "help" next-page-n)) 'face 'which-key-note-face)))) -- 2.30.2